#ifndef _TIME_H_
#define _TIME_H_

#include "winstdtools.h"
#include <iostream>

namespace StdTools
{
#ifdef WIN
	class STDTOOLS_API DateTime {
#else
	class DateTime {
#endif
	public:
		DateTime(int seconds);
		~DateTime(void);
		static DateTime * CurrentTime();

		int getTimestamp();
		int getHour();
		int getMinute();
		int getSecond();
		int getDay();
		int getMonth();
		int getYear();

		friend std::ostream& operator<< (std::ostream& os, const DateTime& t);
	private:
		time_t seconds;
	};
}
#endif

